package com.yang.qgg_demo.service.impl;

import com.yang.qgg_demo.entity.User;
import com.yang.qgg_demo.mapper.UserMapper;
import com.yang.qgg_demo.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yang
 * @since 2024-09-23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    public Object findAll() {
        List<User> list = userMapper.selectList(null);
        return list.size();
    }


}
